﻿<Window x:Class="PersonalClient.Login"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Login" Loaded="Window_Loaded" 
        mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        WindowStyle="None"
        AllowsTransparency="True"
        Background="{Binding}" 
        MouseDown="Window_MouseDown" WindowStartupLocation="CenterScreen"
       SizeToContent="WidthAndHeight" 
        >
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="ResourceDict.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>
    <Border BorderThickness="2" BorderBrush="White">
        <Grid Grid.Row="1" Margin="0">
            <Grid.RowDefinitions>
                <RowDefinition>
                </RowDefinition>
                <RowDefinition>
                </RowDefinition>
            </Grid.RowDefinitions>
            <Canvas Width="400" Height="80">
                <Canvas.Background>
                    <ImageBrush ImageSource="Images/标题.jpg" >

                    </ImageBrush>
                </Canvas.Background>
                <Button
                    Name="btnClose"
                    Canvas.Top="0"
                    Canvas.Right="0"
                     Style="{StaticResource CloseBtn}"
                    Click="btnClose_Click"
                      />
            </Canvas>
            <Border 
                 Grid.Row="1"
                Background="#2a2d32" Width="400" Height="100">

                <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
                    <TextBlock
                    HorizontalAlignment="Center"
                    VerticalAlignment="Center"
                    FontSize="20"
                    Foreground="White" Margin="5" FontStretch="Normal" FontWeight="Normal">帐号:
                    </TextBlock>
                    <TextBox
                    Width="200"
                    Height="30"
                    HorizontalContentAlignment="Center"
                    VerticalContentAlignment="Center"
                    BorderThickness="1"
                    BorderBrush="#999999" FontSize="18">dfdf
                    </TextBox>
                    <Button 
                    Name="btnLogin" 
                    Style="{StaticResource LoginBtn}"
                    Width="70" Height="30"  FontSize="20" Foreground="#ffffff"
                 Margin="5" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" FontWeight="Normal" FontStyle="Normal" Click="btnLogin_Click_1">登陆
                    </Button>
                </StackPanel>
            </Border>
        </Grid>
    </Border>
</Window>
